package name.panitz.ludens.strategy;
class Set implements SetStone{
  Position pos;
  Set(Position pos){this.pos=pos;}
  Set(byte tr,byte p){this.pos=new Position(tr,p);}
  public  Position getPosition(){return pos;}

  public Muehle move(Muehle m){
    Muehle result=(Muehle)m.clone();
    result.movesDone=(byte)(m.movesDone+1);
    result.playerStartStones[m.player%2]
     =(byte)(m.playerStartStones[m.player%2]-1);
    result.playerStartStones[m.nextPlayer()%2]
     =m.playerStartStones[m.nextPlayer()%2];
    result.b[pos.triblet][pos.pos]=m.player;
    result.player=m.nextPlayer();
    return result;
  }
  @Override public String toString(){
      return "->"+pos;
  }
}

